package com.oc.mba.service;

import java.util.List;

import com.oc.mba.entity.OcPaper;
import com.oc.mba.entity.OcPaperQuestion;
import com.oc.mba.entity.OcQuestion;
import com.oc.mba.entity.OcQuestionOption;
import com.oc.mba.entity.OcQuestionSeckill;
import com.oc.mba.entity.OcQuestionSolution;
import com.oc.mba.entity.OcTopic;
import com.oc.mba.entity.PagingModel;
import com.oc.mba.util.PaginationSupport;

public interface PaperService {
	public List<OcPaper> list();
	
	public List<OcPaper> listAll();
	
	public OcPaper findPaper(Integer paperId);

	public void save(OcPaper paper);

	public void deletePaper(Integer paperID);

	public void update(OcPaper paper);

	public List<OcQuestion> findQuestionByPaperID(Integer paperID);

	public List<OcQuestion> findQuestionBySerial(String serial);

	public void savePaperQuestion(OcPaperQuestion paperQuestion);

	public OcPaperQuestion findPaperQuestion(Integer paperID, Integer questionID);

	public void removePaperQuestion(Integer paperID, Integer questionID);

	public PaginationSupport listAllQuestionByPaging(int current);

	public void save(OcQuestion question);

	public OcQuestion findQuestion(int questionID);

	public void publishQuestion(int questionID);

	public void unpublishQuestion(int questionID);

	public void deleteQuestion(int questionID, boolean b);

	public void save(OcQuestionOption option);

	public void deleteQuestionOption(Integer optionID);

	public void save(OcQuestionSolution solution);

	public void save(OcQuestionSeckill seckill);

	public void deleteQuestionSolution(Integer solutionID);

	public void deleteQuestionSeckill(Integer seckillID);

	public void updateQuestionOptionFault(Integer optionID);

	public void updateQuestionOptionCorrect(Integer optionID);
}
